package com.xxxx.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author mi-nuo-ji
 * @since 2022-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_workflow")
@ApiModel(value="Workflow对象", description="")
public class Workflow implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    private String roleflow;

    private String accountflow;

    private String content;

    @ApiModelProperty(value = "申请状态（0申请中1拒绝2同意）")
    private Integer status;

    private Integer account_id;

    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss" , timezone = "Asia/Shanghai")
    private LocalDateTime createtime;

    private String custom;

    @ApiModelProperty(value = "是否允许(1否0是)")
    @TableField(exist = false)
    private Integer allow;

    @ApiModelProperty(value = "申请人名称")
    @TableField(exist = false)
    private String accountName;

    @ApiModelProperty(value = "已同意审批人名称")
    @TableField(exist = false)
    private String allowedName;

    @ApiModelProperty(value = "审批人名称")
    @TableField(exist = false)
    private String allowName;

    @ApiModelProperty(value = "状态翻译")
    @TableField(exist = false)
    private String StatusString;


}
